-- GENERATED SPELL FOR [Darkmist Silkspinner] --


function spell0_4379(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4379', 30000, 1)
end

function spell1_4379(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4379', 5329, 1)
end

function Sorts_4379(pUnit, Event)
local choix_sorts_4379 = math.random(0, 1)
if choix_sorts_4379 == 0 then
pUnit:RegisterEvent('spell0_4379', 1, 1)
end
if choix_sorts_4379 == 1 then
pUnit:RegisterEvent('spell1_4379', 1, 1)
end
end

function mob4379_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4379', math.random(1500, 3000), 1)
end

function mob4379_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4379_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4379_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4379, 1, 'mob4379_Action')
RegisterUnitEvent(4379, 2, 'mob4379_Leave')
RegisterUnitEvent(4379, 3, 'mob4379_Kill')
RegisterUnitEvent(4379, 4, 'mob4379_Die')
